package com.ghery.ftp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ghery
 * @date 2020/8/6 16:32
 * @desc ftp服务参数配置
 */
@Data
@ConfigurationProperties(prefix = "ftp")
public class FtpConfiguration {
    private String ip ;
    private int port = 21;
    private String username ;
    private String password ;
    /**
     * 读取ftp时，读取最大的数量
     */
    private int everyReceiveNum = 1;
    private int bufferSize = 2048;
    private int maxTotal = 8;
    private int maxIdle = 8;
    private int minIdle = 1;
    /**
     * ftp的根目录全路径，如：/data/ftp
     */
    private String homeDir = "";
}
